import { createRouter, createWebHistory } from 'vue-router'
import HomePage from '../views/HomePage.vue'
import __path from '@/config/__path';

const router = createRouter({
  history: createWebHistory(__path),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomePage
    },
    {
      path: '/jmx/tools/monthCenter',
      name: 'tools',
      component: () => import('../views/tools/tools.vue')
    },
    {
      path: '/jmx/tools/dayCenter',
      name: 'languageExcelTools',
      component: () => import('../views/languageExcelTools/languageExcelTools.vue')
    },
    {
      path: '/fabric',
      name: 'fabric',
      component: () => import('../views/fabric/fabricPage.vue')
    },
    {
      path: '/scroll',
      name: 'fabric',
      component: () => import('../views/VoiceSelects.vue')
    },
  ]
})

export default router
